<script setup lang="ts">
defineOptions({
    name: 'login',
});

function login() {
    console.log('login');
    useUserStore().login({
        username: 'admin',
        password: '123456',
    });
}
</script>

<template>
    <div>
        <el-button type="primary" @click="login">登录</el-button>
    </div>
</template>

<style lang="scss" scoped></style>
